import http from './http.js'

// 列表
const goodsList = (pageNumber,pageSize) => {
  return http.get('/goods/list',{
    params:{
      pageNumber,
      pageSize,
    }
  })
}

//修改状态
const goodsStatus = (status,ids) => {
  return http.put(`/goods/status/${status}`,{ids})
}

export default {
  goodsList,
  goodsStatus
}